import { createApp } from 'vue';
import { setupStore } from '@/store';
import router, { setupRouter } from '@/router';
import App from './App.vue';
import { NButton } from 'naive-ui';
import 'virtual:windi.css';

async function bootstrap() {
  const app = createApp(App);

  // pinia 注册
  setupStore(app);

  await setupRouter(app);

  await router.isReady();

  app.mount('#app', true);
}

void bootstrap();
